home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Commodities / ScreenSelect / ScreenSelect.Install < prev    next >
Text File  |  1996-09-26  |  6KB  |  323 lines

  1. (set #screenselectcopyhelp (cat
  2.     "This is the directory you want ScreenSelect program "
  3.     "to be installed. If you want ScreenSelect always to start "
  4.     "in boot up process then you should install it to "
  5.     "WBStartup-directory.") )
  6.  
  7.  
  8. (set #tooltypeshelp (cat
  9.     "These are the commodity tooltypes for "
  10.     "ScreenSelect. If you have made the "
  11.     "installation to WBStartup then you should "
  12.     "set the DONOTWAIT tooltype.\n") )
  13.  
  14. (set #screenselectprefscopyhelp (cat
  15.     "This is the directory you want ScreenSelect "
  16.        "Preferences setting program to be installed. "
  17.        "For maximum consistency with system preferences "
  18.        "programs you should install it to Prefs-directory.") )
  19.  
  20. (set #doccopyhelp (cat
  21.     "Select documentation files for ScreenSelect and "
  22.     "ScreenSelectPrefs programs you want to be installed." )
  23. )
  24.  
  25. (set #stickyask (cat
  26.     "Do you want to install StickySelect?" )
  27. )
  28.  
  29. (set #cataloghelp (cat
  30.     "Select language catalog files you want to install. "
  31.     "These langauge dirs along with catalog files will "
  32.     "be installed to your LOCALE: directory. "
  33.     "English is a default language." )
  34. )
  35.  
  36. (set ver (/ (getversion "workbench.library") 65536) )
  37.  
  38.  
  39. (complete 0)
  40.  
  41. (set #destination
  42.         (askdir
  43.             (prompt "Where to install ScreenSelect program?")
  44.             (help #screenselectcopyhelp )
  45.             (default "SYS:WBStartup/")
  46.         )
  47. )
  48.  
  49. (set @default-dest #destination)
  50.  
  51. (message "Copy ScreenSelect to " #destination " directory?\n")
  52.  
  53. (copyfiles (source "ScreenSelect")
  54.            (dest #destination)
  55.            (infos)
  56. )
  57.  
  58. (complete 30)
  59.  
  60.  
  61. (set #tooltypeopts
  62.         (askoptions
  63.             (prompt "Which tooltypes you want to set for ScreenSelect\n")
  64.             (help #tooltypeshelp)
  65.             (choices "CX_POPUP" "CX_PRI" "CX_POPKEY")
  66.             (default 0)
  67.         )
  68. )
  69.  
  70. (if (IN #tooltypeopts 0)
  71.         (tooltype
  72.             (dest
  73.                     (tackon
  74.                         #destination "ScreenSelect")
  75.                     )
  76.             (settooltype "CX_POPUP" "YES")
  77.             (noposition) )
  78.         (tooltype
  79.             (dest
  80.                     (tackon
  81.                         #destination "ScreenSelect")
  82.                     )
  83.             (settooltype "CX_POPUP" "NO")
  84.             (noposition) ) )
  85.  
  86. (if (IN #tooltypeopts 1)
  87.         (tooltype
  88.             (dest
  89.                     (tackon
  90.                         #destination "ScreenSelect")
  91.                     )
  92.             (settooltype "CX_PRI"
  93.                     (cat
  94.                             (asknumber
  95.                                     (prompt "ScreenSelect commodity priority?")
  96.                                     (help "")
  97.                                     (range -127 127)
  98.                                     (default 0)
  99.                             )
  100.                     )
  101.             )
  102.             (noposition)
  103.         )
  104. )
  105.  
  106. (if (IN #tooltypeopts 2)
  107.         (tooltype
  108.             (dest (tackon #destination "ScreenSelect") )
  109.             (settooltype "CX_POPKEY"
  110.                     (askstring
  111.                         (prompt "ScreenSelect popkey string?")
  112.                         (help
  113.                                 (cat
  114.                                     "You can also set popkey string with\n"
  115.                                     "ScreenSelectPrefs program.")
  116.                                 )
  117.                         (default "shift esc")
  118.                     )
  119.             )
  120.             (noposition)
  121.         )
  122. )
  123.  
  124. (complete 50)
  125.  
  126. (set #prefs
  127.         (askdir
  128.             (prompt "Where to install ScreenSelectPrefs program?")
  129.             (help #screenselectprefscopyhelp)
  130.             (default "SYS:Prefs/")
  131.         )
  132. )
  133.  
  134. (message "Copy ScreenSelectPrefs to " #prefs " directory?\n")
  135.  
  136. (copyfiles (source "ScreenSelectPrefs")
  137.            (dest #prefs)
  138.            (infos) )
  139.  
  140. (set #prefsinrightplace (IN (exists "SYS:Prefs/ScreenSelectPrefs" (noreq)) 0))
  141.  
  142. (if (= 0 #prefsinrightplace)
  143.         (tooltype (dest (tackon #destination "ScreenSelect"))
  144.                   (settooltype "PREFSPROGRAM" (tackon #prefs "ScreenSelectPrefs"))
  145.                   (noposition)
  146.         )
  147. )
  148.  
  149. (complete 70)
  150.  
  151. (if (= 1 (askbool
  152.             (prompt #stickyask)
  153.             (help "")
  154.             (default 1)
  155.          )
  156.     )
  157.     (
  158.         (set #stickydir
  159.             (askdir
  160.                 (prompt "Where to install StickySelect program?")
  161.                 (help "")
  162.                 (default "C:")
  163.             )
  164.         )
  165.  
  166.         (copyfiles
  167.             (source "StickySelect/StickySelect")
  168.             (dest #stickydir)
  169.             (infos)
  170.         )
  171.     )
  172. )
  173.  
  174.  
  175. (complete 80)
  176.  
  177. (set #docfiles
  178.         (askoptions
  179.             (prompt "Which document files you want to install?\n")
  180.             (help #doccopyhelp)
  181.             (choices "ScreenSelect.doc   - ASCII document."
  182.                      "ScreenSelect.guide - AmigaGuide document."
  183.                      "ScreenSelect.dvi   - Document in DVI format."
  184.                      )
  185.             (default 2)
  186.         )
  187. )
  188.  
  189. (if (= 0 #docfiles)
  190.         (message "No document files installed!\n")
  191.         (
  192.             (set #docdir
  193.                     (askdir
  194.                         (prompt "Where to install document files?")
  195.                         (help "" )
  196.                         (default "WORK:")
  197.                     )
  198.             )
  199.  
  200.             (complete 83)
  201.  
  202.             (if (IN #docfiles 0)
  203.                 (
  204.                     (copyfiles
  205.                             (source "Docs/ScreenSelect.doc")
  206.                                (dest #docdir)
  207.                                (infos)
  208.  
  209.                     )
  210.  
  211.                     (set #docfilename
  212.                             (tackon #docdir "ScreenSelect.doc")
  213.                     )
  214.  
  215.                     (if (> ver 38)
  216.                             (tooltype
  217.                                 (dest #docfilename)
  218.                                 (setdefaulttool "MultiView")
  219.                                 (noposition)
  220.                             )
  221.                             (tooltype
  222.                                 (dest #docfilename)
  223.                                 (setdefaulttool "More")
  224.                                 (noposition)
  225.                             )
  226.                     )
  227.                 )
  228.             )
  229.  
  230.             (complete 86)
  231.  
  232.             (if (IN #docfiles 1)
  233.                 (
  234.                     (copyfiles
  235.                             (source "Docs/ScreenSelect.guide")
  236.                                (dest #docdir)
  237.                                (infos)
  238.  
  239.                     )
  240.  
  241.                     (set #docfilename
  242.                             (tackon #docdir "ScreenSelect.guide")
  243.                     )
  244.  
  245.                     (if (> ver 38)
  246.                             (tooltype
  247.                                 (dest #docfilename)
  248.                                 (setdefaulttool "MultiView")
  249.                                 (noposition)
  250.                             )
  251.                             (tooltype
  252.                                 (dest #docfilename)
  253.                                 (setdefaulttool "AmigaGuide")
  254.                                 (noposition)
  255.                             )
  256.                     )
  257.                 )
  258.             )
  259.  
  260.             (complete 88)
  261.  
  262.             (if (IN #docfiles 2)
  263.                     (copyfiles
  264.                             (source "Docs/ScreenSelect.dvi")
  265.                                (dest #docdir)
  266.                                (infos)
  267.  
  268.                     )
  269.             )
  270.         )
  271. )
  272.  
  273. (complete 90)
  274.  
  275. (set #catalogs
  276.         (askoptions
  277.             (prompt "Which additional languages you want to install?\n")
  278.             (help #cataloghelp)
  279.             (choices "suomi   - Finnish."
  280.                      "svenska - Swedish." )
  281.             (default 3)
  282.         )
  283. )
  284.  
  285. (if (= 0 #catalogs)
  286.         (message "No additional language files installed!\n")
  287.         (
  288.             (set #catalogdir "LOCALE:" )
  289.             (set #suomidir (cat #catalogdir "suomi/") )
  290.             (set #svenskadir (cat #catalogdir "svenska/") )
  291.  
  292.             (complete 94)
  293.  
  294.             (if (IN #catalogs 0)
  295.                 (
  296.                     (copyfiles
  297.                             (source "Catalogs/suomi/screenselect.catalog")
  298.                                (dest #suomidir )
  299.                                (infos)
  300.  
  301.                     )
  302.                 )
  303.             )
  304.  
  305.             (complete 97)
  306.  
  307.             (if (IN #catalogs 1)
  308.                 (
  309.                     (copyfiles
  310.                             (source "Catalogs/svenska/screenselect.catalog")
  311.                                (dest #svenskadir )
  312.                                (infos)
  313.  
  314.                     )
  315.                 )
  316.             )
  317.         )
  318. )
  319.  
  320.  
  321. (complete 100)
  322.  
  323.